package com.global.college.ui.presenter;

import android.content.Context;

import com.global.college.base.BasePresenter;
import com.global.college.ui.interfaces.IDownloadView;


/**
 *  下载文件
 */
public class DownloadPresenter extends BasePresenter {

    private IDownloadView mIDownloadView;


    public DownloadPresenter(Context context) {
        super(context);
    }

    public void setIDownloadView(IDownloadView iDownloadView){
        mIDownloadView = iDownloadView;
    }


    /**
     * 下载
     *
     */
    public void downloadFile(String start, String url){
//        mRequestClient.downloadFile(start,url).subscribe(new ProgressSubscriber<Object>(mContext,false) {
//            @Override
//            public void onNext(Object model) {
//                if(null != mIDownloadView){
//                    mIDownloadView.downloadFileSuccess(model);
//                }
//            }
//
//            @Override
//            public void onError(Throwable e) {
//                super.onError(e);
//                if(null != mIDownloadView){
//                    mIDownloadView.downloadFileFail(e.toString());
//                }
//            }
//        });
    }



}
